///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version May 27 2019)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "stdafx.h"

#include "app_guis.h"

///////////////////////////////////////////////////////////////////////////

TestMainFrameUI::TestMainFrameUI( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	this->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
	this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );

	wxBoxSizer* bSizer1;
	bSizer1 = new wxBoxSizer( wxVERTICAL );

	wxBoxSizer* bSizer2;
	bSizer2 = new wxBoxSizer( wxHORIZONTAL );

	m_staticText1 = new wxStaticText( this, wxID_ANY, wxT("网址:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText1->Wrap( -1 );
	bSizer2->Add( m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	m_tcNetAddr = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	bSizer2->Add( m_tcNetAddr, 1, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );

	m_btnGo = new wxButton( this, wxID_ANY, wxT("Go"), wxDefaultPosition, wxSize( 30,-1 ), 0 );
	bSizer2->Add( m_btnGo, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );


	bSizer1->Add( bSizer2, 0, wxEXPAND, 5 );

	m_panelWebView = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL|wxBORDER_NONE );
	m_panelWebView->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
	m_panelWebView->SetBackgroundColour( wxColour( 255, 255, 255 ) );

	wxBoxSizer* bSizer3;
	bSizer3 = new wxBoxSizer( wxVERTICAL );

	m_webview=NewWebViewMB(m_panelWebView,wxID_ANY,
	wxString::FromUTF8(u8"http://www.baidu.com/"),
	wxDefaultPosition,wxDefaultSize,
	wxNO_BORDER,
	wxString("m_webview"));
	bSizer3->Add( m_webview, 1, wxEXPAND, 5 );


	m_panelWebView->SetSizer( bSizer3 );
	m_panelWebView->Layout();
	bSizer3->Fit( m_panelWebView );
	bSizer1->Add( m_panelWebView, 1, wxALL|wxEXPAND, 5 );


	this->SetSizer( bSizer1 );
	this->Layout();

	this->Centre( wxBOTH );
}

TestMainFrameUI::~TestMainFrameUI()
{
}

JBLEditorUI::JBLEditorUI( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
{
	wxBoxSizer* bSizer11;
	bSizer11 = new wxBoxSizer( wxHORIZONTAL );

	m_splitter2 = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );
	m_splitter2->Connect( wxEVT_IDLE, wxIdleEventHandler( JBLEditorUI::m_splitter2OnIdle ), NULL, this );
	m_splitter2->SetMinimumPaneSize( 1 );

	m_panel6 = new wxPanel( m_splitter2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer22;
	bSizer22 = new wxBoxSizer( wxVERTICAL );

	m_splitter1 = new wxSplitterWindow( m_panel6, wxID_ANY, wxDefaultPosition, wxSize( 200,-1 ), wxSP_3D );
	m_splitter1->Connect( wxEVT_IDLE, wxIdleEventHandler( JBLEditorUI::m_splitter1OnIdle ), NULL, this );
	m_splitter1->SetMinimumPaneSize( 1 );

	m_panel2 = new wxPanel( m_splitter1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer14;
	bSizer14 = new wxBoxSizer( wxVERTICAL );

	wxFlexGridSizer* fgSizer2;
	fgSizer2 = new wxFlexGridSizer( 0, 2, 0, 0 );
	fgSizer2->SetFlexibleDirection( wxBOTH );
	fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );

	m_staticText17 = new wxStaticText( m_panel2, wxID_ANY, wxT("姓名:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText17->Wrap( -1 );
	fgSizer2->Add( m_staticText17, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_tcBRXM = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	fgSizer2->Add( m_tcBRXM, 1, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );

	m_staticText18 = new wxStaticText( m_panel2, wxID_ANY, wxT("性别:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText18->Wrap( -1 );
	fgSizer2->Add( m_staticText18, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_tcBRXB = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	fgSizer2->Add( m_tcBRXB, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_staticText19 = new wxStaticText( m_panel2, wxID_ANY, wxT("年龄:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText19->Wrap( -1 );
	fgSizer2->Add( m_staticText19, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_tcBRNL = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	fgSizer2->Add( m_tcBRNL, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_staticText20 = new wxStaticText( m_panel2, wxID_ANY, wxT("住院号:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText20->Wrap( -1 );
	fgSizer2->Add( m_staticText20, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_tcZYH = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	fgSizer2->Add( m_tcZYH, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_staticText21 = new wxStaticText( m_panel2, wxID_ANY, wxT("科室:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText21->Wrap( -1 );
	fgSizer2->Add( m_staticText21, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_tcDQKS = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	fgSizer2->Add( m_tcDQKS, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_staticText23 = new wxStaticText( m_panel2, wxID_ANY, wxT("床位医师:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText23->Wrap( -1 );
	fgSizer2->Add( m_staticText23, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_tcCWYS = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	fgSizer2->Add( m_tcCWYS, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_staticText231 = new wxStaticText( m_panel2, wxID_ANY, wxT("当前医师:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText231->Wrap( -1 );
	fgSizer2->Add( m_staticText231, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_tcCurYS = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	fgSizer2->Add( m_tcCurYS, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_staticText24 = new wxStaticText( m_panel2, wxID_ANY, wxT("住院状态:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText24->Wrap( -1 );
	fgSizer2->Add( m_staticText24, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );

	m_tcZYZT = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	fgSizer2->Add( m_tcZYZT, 1, wxRIGHT|wxLEFT, 5 );


	bSizer14->Add( fgSizer2, 0, wxEXPAND, 5 );

	wxBoxSizer* bSizer16;
	bSizer16 = new wxBoxSizer( wxHORIZONTAL );

	m_btnUpdate = new wxButton( m_panel2, wxID_ANY, wxT("刷新"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer16->Add( m_btnUpdate, 0, wxALL, 5 );

	m_btnMB = new wxButton( m_panel2, wxID_ANY, wxT("模板"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer16->Add( m_btnMB, 0, wxALL, 5 );


	bSizer14->Add( bSizer16, 0, 0, 5 );


	m_panel2->SetSizer( bSizer14 );
	m_panel2->Layout();
	bSizer14->Fit( m_panel2 );
	m_panel3 = new wxPanel( m_splitter1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer13;
	bSizer13 = new wxBoxSizer( wxVERTICAL );

	m_treeCtrl = new wxTreeCtrl( m_panel3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_DEFAULT_STYLE|wxTR_HIDE_ROOT|wxBORDER_NONE );
	bSizer13->Add( m_treeCtrl, 1, wxEXPAND, 5 );


	m_panel3->SetSizer( bSizer13 );
	m_panel3->Layout();
	bSizer13->Fit( m_panel3 );
	m_splitter1->SplitHorizontally( m_panel2, m_panel3, 208 );
	bSizer22->Add( m_splitter1, 1, wxEXPAND, 5 );


	m_panel6->SetSizer( bSizer22 );
	m_panel6->Layout();
	bSizer22->Fit( m_panel6 );
	m_panel7 = new wxPanel( m_splitter2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer23;
	bSizer23 = new wxBoxSizer( wxVERTICAL );

	m_notebook = new wxAuiNotebook( m_panel7, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxAUI_NB_CLOSE_BUTTON|wxAUI_NB_DEFAULT_STYLE|wxAUI_NB_WINDOWLIST_BUTTON );

	bSizer23->Add( m_notebook, 1, wxEXPAND | wxALL, 5 );


	m_panel7->SetSizer( bSizer23 );
	m_panel7->Layout();
	bSizer23->Fit( m_panel7 );
	m_splitter2->SplitVertically( m_panel6, m_panel7, 202 );
	bSizer11->Add( m_splitter2, 1, wxEXPAND, 5 );


	this->SetSizer( bSizer11 );
	this->Layout();

	// Connect Events
	m_btnUpdate->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( JBLEditorUI::OnBtnUpdate ), NULL, this );
	m_btnMB->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( JBLEditorUI::OnBtnTemplate ), NULL, this );
	m_treeCtrl->Connect( wxEVT_COMMAND_TREE_ITEM_ACTIVATED, wxTreeEventHandler( JBLEditorUI::OnTreeItemActivatedBL ), NULL, this );
}

JBLEditorUI::~JBLEditorUI()
{
	// Disconnect Events
	m_btnUpdate->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( JBLEditorUI::OnBtnUpdate ), NULL, this );
	m_btnMB->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( JBLEditorUI::OnBtnTemplate ), NULL, this );
	m_treeCtrl->Disconnect( wxEVT_COMMAND_TREE_ITEM_ACTIVATED, wxTreeEventHandler( JBLEditorUI::OnTreeItemActivatedBL ), NULL, this );

}

JMainFrameUI::JMainFrameUI( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	this->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
	this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );

	m_menubar = new wxMenuBar( 0 );
	m_menuFile = new wxMenu();
	wxMenuItem* m_menuItemExit;
	m_menuItemExit = new wxMenuItem( m_menuFile, wxID_ANY, wxString( wxT("退出(&X)") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuFile->Append( m_menuItemExit );

	m_menubar->Append( m_menuFile, wxT("文件(&F)") );

	menu_manager = new wxMenu();
	wxMenuItem* m_menuItemZYBR;
	m_menuItemZYBR = new wxMenuItem( menu_manager, wxID_ANY, wxString( wxT("住院病人") ) , wxEmptyString, wxITEM_NORMAL );
	menu_manager->Append( m_menuItemZYBR );

	m_menubar->Append( menu_manager, wxT("管理(&M)") );

	this->SetMenuBar( m_menubar );

	m_toolBar = this->CreateToolBar( wxTB_HORIZONTAL, wxID_ANY );
	m_toolExit = m_toolBar->AddTool( wxID_ANY, wxT("退出"), wxArtProvider::GetBitmap( wxART_QUIT, wxART_TOOLBAR ), wxNullBitmap, wxITEM_NORMAL, wxT("退出EMRHelper"), wxEmptyString, NULL );

	m_toolBar->Realize();

	wxBoxSizer* bSizer7;
	bSizer7 = new wxBoxSizer( wxVERTICAL );

	m_notebook = new wxAuiNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxAUI_NB_BOTTOM|wxAUI_NB_CLOSE_BUTTON|wxAUI_NB_DEFAULT_STYLE|wxAUI_NB_WINDOWLIST_BUTTON );

	bSizer7->Add( m_notebook, 1, wxEXPAND | wxALL, 5 );


	this->SetSizer( bSizer7 );
	this->Layout();
	m_statusBar = this->CreateStatusBar( 1, 0, wxID_ANY );

	this->Centre( wxBOTH );

	// Connect Events
	this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( JMainFrameUI::OnCloseMainFrame ) );
	m_menuFile->Bind(wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( JMainFrameUI::OnCommandExit ), this, m_menuItemExit->GetId());
	menu_manager->Bind(wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( JMainFrameUI::OnCommandZYBR ), this, m_menuItemZYBR->GetId());
	this->Connect( m_toolExit->GetId(), wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( JMainFrameUI::OnCommandExit ) );
}

JMainFrameUI::~JMainFrameUI()
{
	// Disconnect Events
	this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( JMainFrameUI::OnCloseMainFrame ) );
	this->Disconnect( m_toolExit->GetId(), wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( JMainFrameUI::OnCommandExit ) );

}

JInPatientUI::JInPatientUI( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
{
	wxBoxSizer* bSizer8;
	bSizer8 = new wxBoxSizer( wxVERTICAL );

	wxBoxSizer* bSizer17;
	bSizer17 = new wxBoxSizer( wxHORIZONTAL );

	m_staticText13 = new wxStaticText( this, wxID_ANY, wxT("登录科室:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText13->Wrap( -1 );
	bSizer17->Add( m_staticText13, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	wxArrayString m_choiceLoginKSChoices;
	m_choiceLoginKS = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxSize( 100,-1 ), m_choiceLoginKSChoices, 0 );
	m_choiceLoginKS->SetSelection( 0 );
	bSizer17->Add( m_choiceLoginKS, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );


	bSizer8->Add( bSizer17, 0, wxEXPAND, 5 );

	wxBoxSizer* bSizer9;
	bSizer9 = new wxBoxSizer( wxHORIZONTAL );

	m_staticText12 = new wxStaticText( this, wxID_ANY, wxT("当前医师:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText12->Wrap( -1 );
	bSizer9->Add( m_staticText12, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	m_tcCurDoctor = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 100,-1 ), wxTE_READONLY );
	#ifdef __WXGTK__
	if ( !m_tcCurDoctor->HasFlag( wxTE_MULTILINE ) )
	{
	m_tcCurDoctor->SetMaxLength( 24 );
	}
	#else
	m_tcCurDoctor->SetMaxLength( 24 );
	#endif
	bSizer9->Add( m_tcCurDoctor, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );


	bSizer8->Add( bSizer9, 0, wxEXPAND, 5 );

	wxBoxSizer* bSizer18;
	bSizer18 = new wxBoxSizer( wxHORIZONTAL );

	m_staticText14 = new wxStaticText( this, wxID_ANY, wxT("床位医师:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText14->Wrap( -1 );
	bSizer18->Add( m_staticText14, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	wxArrayString m_choiceYSChoices;
	m_choiceYS = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxSize( 100,-1 ), m_choiceYSChoices, 0 );
	m_choiceYS->SetSelection( 0 );
	bSizer18->Add( m_choiceYS, 0, wxRIGHT|wxLEFT, 5 );


	bSizer8->Add( bSizer18, 0, wxEXPAND, 5 );

	wxBoxSizer* bSizer10;
	bSizer10 = new wxBoxSizer( wxHORIZONTAL );

	m_staticText18 = new wxStaticText( this, wxID_ANY, wxT("住院天数:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText18->Wrap( -1 );
	bSizer10->Add( m_staticText18, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	wxArrayString m_choiceDaysChoices;
	m_choiceDays = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxSize( 100,-1 ), m_choiceDaysChoices, 0 );
	m_choiceDays->SetSelection( 0 );
	bSizer10->Add( m_choiceDays, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );


	bSizer8->Add( bSizer10, 0, wxEXPAND, 5 );

	wxBoxSizer* bSizer20;
	bSizer20 = new wxBoxSizer( wxHORIZONTAL );

	m_staticText16 = new wxStaticText( this, wxID_ANY, wxT("智能筛选:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText16->Wrap( -1 );
	bSizer20->Add( m_staticText16, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	m_tcSelectKey = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 150,-1 ), 0 );
	bSizer20->Add( m_tcSelectKey, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );


	bSizer8->Add( bSizer20, 0, wxEXPAND, 5 );

	m_lcPatient = new wxDataViewCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_HORIZ_RULES|wxDV_MULTIPLE|wxDV_VERT_RULES );
	bSizer8->Add( m_lcPatient, 1, wxALL|wxEXPAND, 5 );


	this->SetSizer( bSizer8 );
	this->Layout();

	// Connect Events
	this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( JInPatientUI::OnInitPanel ) );
	m_choiceLoginKS->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( JInPatientUI::OnChoiceKS ), NULL, this );
	m_choiceYS->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( JInPatientUI::OnChoicdCWYS ), NULL, this );
	m_choiceDays->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( JInPatientUI::OnChoiceDays ), NULL, this );
	m_tcSelectKey->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( JInPatientUI::OnTextSelectKey ), NULL, this );
	m_lcPatient->Connect( wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, wxDataViewEventHandler( JInPatientUI::lcPatient_OnItemActivated ), NULL, this );
}

JInPatientUI::~JInPatientUI()
{
	// Disconnect Events
	this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( JInPatientUI::OnInitPanel ) );
	m_choiceLoginKS->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( JInPatientUI::OnChoiceKS ), NULL, this );
	m_choiceYS->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( JInPatientUI::OnChoicdCWYS ), NULL, this );
	m_choiceDays->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( JInPatientUI::OnChoiceDays ), NULL, this );
	m_tcSelectKey->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( JInPatientUI::OnTextSelectKey ), NULL, this );
	m_lcPatient->Disconnect( wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, wxDataViewEventHandler( JInPatientUI::lcPatient_OnItemActivated ), NULL, this );

}

JLoginDialogUI::JLoginDialogUI( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );

	wxBoxSizer* bSizer4;
	bSizer4 = new wxBoxSizer( wxVERTICAL );

	wxBoxSizer* bSizer5;
	bSizer5 = new wxBoxSizer( wxHORIZONTAL );

	m_bitmap = new wxStaticBitmap( this, wxID_ANY, wxArtProvider::GetBitmap( wxART_GO_HOME, wxART_CMN_DIALOG ), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer5->Add( m_bitmap, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	m_staticText2 = new wxStaticText( this, wxID_ANY, wxT("登录系统"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText2->Wrap( -1 );
	m_staticText2->SetFont( wxFont( 20, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
	m_staticText2->SetForegroundColour( wxColour( 0, 0, 255 ) );

	bSizer5->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL, 5 );


	bSizer4->Add( bSizer5, 0, wxALIGN_CENTER_HORIZONTAL, 5 );

	wxFlexGridSizer* fgSizer1;
	fgSizer1 = new wxFlexGridSizer( 0, 3, 0, 0 );
	fgSizer1->SetFlexibleDirection( wxBOTH );
	fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );

	m_staticText4 = new wxStaticText( this, wxID_ANY, wxT("网络线路:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText4->Wrap( -1 );
	fgSizer1->Add( m_staticText4, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	wxArrayString m_choiceXLChoices;
	m_choiceXL = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxSize( 200,-1 ), m_choiceXLChoices, 0 );
	m_choiceXL->SetSelection( 0 );
	fgSizer1->Add( m_choiceXL, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );

	m_staticText5 = new wxStaticText( this, wxID_ANY, wxT("*"), wxDefaultPosition, wxSize( 30,-1 ), 0 );
	m_staticText5->Wrap( -1 );
	fgSizer1->Add( m_staticText5, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	m_staticText6 = new wxStaticText( this, wxID_ANY, wxT("登录ID:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText6->Wrap( -1 );
	fgSizer1->Add( m_staticText6, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	m_tcLoginID = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	#ifdef __WXGTK__
	if ( !m_tcLoginID->HasFlag( wxTE_MULTILINE ) )
	{
	m_tcLoginID->SetMaxLength( 20 );
	}
	#else
	m_tcLoginID->SetMaxLength( 20 );
	#endif
	fgSizer1->Add( m_tcLoginID, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );

	m_staticText7 = new wxStaticText( this, wxID_ANY, wxT("*"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText7->Wrap( -1 );
	fgSizer1->Add( m_staticText7, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	m_staticText10 = new wxStaticText( this, wxID_ANY, wxT("登录科室:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText10->Wrap( -1 );
	fgSizer1->Add( m_staticText10, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	wxArrayString m_choiceKSChoices;
	m_choiceKS = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceKSChoices, 0 );
	m_choiceKS->SetSelection( 0 );
	fgSizer1->Add( m_choiceKS, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );

	m_staticText11 = new wxStaticText( this, wxID_ANY, wxT("*"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText11->Wrap( -1 );
	fgSizer1->Add( m_staticText11, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	m_staticText8 = new wxStaticText( this, wxID_ANY, wxT("登录密码:"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText8->Wrap( -1 );
	fgSizer1->Add( m_staticText8, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

	m_tcPassword = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
	#ifdef __WXGTK__
	if ( !m_tcPassword->HasFlag( wxTE_MULTILINE ) )
	{
	m_tcPassword->SetMaxLength( 20 );
	}
	#else
	m_tcPassword->SetMaxLength( 20 );
	#endif
	fgSizer1->Add( m_tcPassword, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );

	m_staticText9 = new wxStaticText( this, wxID_ANY, wxT("*"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText9->Wrap( -1 );
	fgSizer1->Add( m_staticText9, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );


	bSizer4->Add( fgSizer1, 1, wxALIGN_CENTER_HORIZONTAL, 5 );

	m_stTips = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_stTips->Wrap( -1 );
	bSizer4->Add( m_stTips, 0, wxEXPAND|wxBOTTOM|wxLEFT, 10 );

	wxBoxSizer* bSizer6;
	bSizer6 = new wxBoxSizer( wxHORIZONTAL );

	m_btnExit = new wxButton( this, wxID_ANY, wxT("退出(&X)"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer6->Add( m_btnExit, 0, wxALL, 5 );

	m_btnLogin = new wxButton( this, wxID_ANY, wxT("登录(&L)"), wxDefaultPosition, wxDefaultSize, 0 );

	m_btnLogin->SetDefault();
	bSizer6->Add( m_btnLogin, 0, wxALL, 5 );


	bSizer4->Add( bSizer6, 0, wxALIGN_RIGHT, 5 );


	this->SetSizer( bSizer4 );
	this->Layout();

	this->Centre( wxBOTH );

	// Connect Events
	this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( JLoginDialogUI::OnClose ) );
	this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( JLoginDialogUI::OnInitDialog ) );
	m_choiceXL->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( JLoginDialogUI::OnChoiceXL ), NULL, this );
	m_tcLoginID->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( JLoginDialogUI::OnKillFocusLoginID ), NULL, this );
	m_tcLoginID->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( JLoginDialogUI::OnTextChangedLoginID ), NULL, this );
	m_tcPassword->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( JLoginDialogUI::OnTextChangePassWD ), NULL, this );
	m_btnExit->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( JLoginDialogUI::OnButtonClickExit ), NULL, this );
	m_btnLogin->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( JLoginDialogUI::OnButtonClickLogin ), NULL, this );
}

JLoginDialogUI::~JLoginDialogUI()
{
	// Disconnect Events
	this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( JLoginDialogUI::OnClose ) );
	this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( JLoginDialogUI::OnInitDialog ) );
	m_choiceXL->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( JLoginDialogUI::OnChoiceXL ), NULL, this );
	m_tcLoginID->Disconnect( wxEVT_KILL_FOCUS, wxFocusEventHandler( JLoginDialogUI::OnKillFocusLoginID ), NULL, this );
	m_tcLoginID->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( JLoginDialogUI::OnTextChangedLoginID ), NULL, this );
	m_tcPassword->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( JLoginDialogUI::OnTextChangePassWD ), NULL, this );
	m_btnExit->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( JLoginDialogUI::OnButtonClickExit ), NULL, this );
	m_btnLogin->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( JLoginDialogUI::OnButtonClickLogin ), NULL, this );

}

JWebviewEditorUI::JWebviewEditorUI( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
{
	wxBoxSizer* bSizer21;
	bSizer21 = new wxBoxSizer( wxVERTICAL );

	m_toolbar = new wxAuiToolBar( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxAUI_TB_HORZ_LAYOUT );
	m_toolbar->SetToolBitmapSize( wxSize( 16,16 ) );
	m_toolUpdate = m_toolbar->AddTool( wxID_ANY, wxT("刷新"), wxArtProvider::GetBitmap( wxART_REDO, wxART_TOOLBAR ), wxNullBitmap, wxITEM_NORMAL, wxEmptyString, wxEmptyString, NULL );

	m_toolbar->Realize();

	bSizer21->Add( m_toolbar, 0, wxEXPAND, 5 );

	m_webview=wxWebView::New(this,wxID_ANY,
	wxString::FromUTF8(u8"about:blank"),
	wxDefaultPosition,wxDefaultSize,wxWebViewBackendMiniBlink,
	wxNO_BORDER,
	wxString("m_webview"));
	m_webview->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new JWebViewExecHandler("wxfs")));
	m_webview->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new wxWebViewFSHandler("memory")));
	m_webview->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNTEXT ) );
	m_webview->SetBackgroundColour( wxColour( 255, 255, 255 ) );

	bSizer21->Add( m_webview, 1, wxEXPAND, 5 );


	this->SetSizer( bSizer21 );
	this->Layout();

	// Connect Events
	this->Connect( m_toolUpdate->GetId(), wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( JWebviewEditorUI::OnToolClickedUpdate ) );
}

JWebviewEditorUI::~JWebviewEditorUI()
{
	// Disconnect Events
	this->Disconnect( m_toolUpdate->GetId(), wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler( JWebviewEditorUI::OnToolClickedUpdate ) );

}
